package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;
import com.tanhua.model.mongo.VideoComment;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface VideoCommentApi {
    //查询视频点赞
    Boolean hasComment(String videoId, Long userId, CommentType like);

    Integer save(VideoComment comment);

    void delete(VideoComment videoComment);
    // 分页查询评论列表
    List<VideoComment> findComments(String id, Integer page, Integer pagesize);

    VideoComment find(String commentId);

    // VideoComment findById(String commentId);

   // void updateById(String commentId);


}
